
import java.util.List;

/**
* @author :${author}
* @description: ${desc}服务类接口
* @create date: ${createDate}
*/

public interface ${entityName}Service {

    /**
    * 保存${desc}
    * @param ${entityNameLower}Dto
    * @return
    */
    public int add(${entityName}Dto ${entityNameLower}Dto);

    /**
    * 更新${desc}
    * @param ${entityNameLower}Dto
    * @return
    */
    public int update(${entityName}Dto ${entityNameLower}Dto);

<#if primaryKey!='noPrimaryKey'>
    /**
    * 删除${desc}
    * @param ${primaryKey}
    * @return
    */
    public int delete(${javaKeyType} ${primaryKey});

    /**
    * 根据条件查询${desc}
    * @param ${primaryKey}
    * @return
    */
    public ${entityName}Vo get(${javaKeyType} ${primaryKey});
</#if>

    /**
    * 查询${desc}
    * @param ${entityNameLower}Dto
    * @return
    */
    public List<${entityName}Vo> findList(${entityName}Dto ${entityNameLower}Dto);

    /**
    * 查询${desc}分页信息
    * @param ${entityNameLower}Dto
    * @return
    */
    public PageVO findPageList(${entityName}Dto ${entityNameLower}Dto);
}
